provider Crons GET /api/0/organizations/{organization_id_or_slug}/monitors/
@utdk/sentry /api/0/organizations/{organization_id_or_slug}/monitors/
Retrieve Monitors for an Organization
Lists monitors, including nested monitor environments. May be filtered to a project or environment.
organization_id_or_slug path required
The ID or slug of the organization the resource belongs to.
string
project query
The IDs of projects to filter by. `-1` means all available projects. For example, the following are valid parameters: - `/?project=1234&project=56789` - `/?project=-1`
array
environment query
The name of environments to filter by.
array
owner query
The owner of the monitor, in the format `user:id` or `team:id`. May be specified multiple times.
string
cursor query
A pointer to the last object fetched and its sort order; used to retrieve the next or previous results.
string

Try it

Authentication
Configure credentials for API Reference
Gateway
The gateway proxies requests and injects credentials server-side. Configure credentials above, then enter your gateway URL.

Saved automatically to browser storage.

retrieveMonitorsForAnOrganization
GET/api/0/organizations/{organization_id_or_slug}/monitors/
Lists monitors, including nested monitor environments. May be filtered to a project or environment.

Parameters

required

The ID or slug of the organization the resource belongs to.

The IDs of projects to filter by. `-1` means all available projects. For example, the following are valid parameters: - `/?project=1234&project=56789` - `/?project=-1`

The name of environments to filter by.

The owner of the monitor, in the format `user:id` or `team:id`. May be specified multiple times.

A pointer to the last object fetched and its sort order; used to retrieve the next or previous results.

Enter a gateway URL above to enable sending.

Code snippet
Updates live as you fill in the form above.

TypeScript

import sentry from '@utdk/sentry';

await sentry.retrieveMonitorsForAnOrganization()